package com.starbugs.wehcat.data;

import com.starbugs.wehcat.pojo.Ingredient;

/**
 * @author huahuadavids
 */
public interface IngredientRepository {
  /**
   * 返回所有配料的list
   *
   * @return Iterable<Ingredient>
   */
  Iterable<Ingredient> findAll();

  /**
   * 通过id查找某个配料
   * @param id id
   * @return Ingredient
   */
  Ingredient findOne(String id);

  /**
   * 保存一个配料
   *
   * @param ingredient an ingredient
   * @return Ingredient ingredient
   */
  Ingredient save(Ingredient ingredient);
}
